﻿package game.objects {
	import flash.system.Capabilities;
	import flash.system.Security;
	
	public class CompileObject {
		
		public static const StandAlone:String	= "StandAlone";
		public static const PlugIn:String		= "PlugIn";
		public static const External:String		= "External";
		public static const Desktop:String		= "Desktop";
		public static const ActiveX:String		= "ActiveX";
		
		public var player:String		= '';
		public var sandboxType:String	= '';
		public var os:String			= '';
		public var version:String;
		public var lang:String;
		public var randomTestID:Boolean;
		
		public function CompileObject(version:String, lang:String, randomTestID:Boolean):void {
			this.version		= version;
			this.lang			= lang;
			this.randomTestID	= randomTestID;
			this.os				= Capabilities.os;
			this.player			= Capabilities.playerType;
			this.sandboxType	= Security.sandboxType;
			
		}
		
		public function toString():String { return GameObject.formatToString(this, 'player', 'sandboxType', 'os', 'version', 'lang'); }
		
	}
	
}